<?php


namespace App\Entity\Contest;


use App\Entity\BaseEntity;

/**
 * Class CreateTeamDto
 * @package App\Entity\Contest
 * @property string $inviteCode
 * @property string $no
 * @property string $name
 */
class CreateTeamDto extends BaseEntity
{
    public function rules(): array
    {
        return [
            'inviteCode' => 'required',
            'no' => 'required',
            'name' => 'required',
        ];
    }

    public function messages(): array
    {
        return [
            'inviteCode.required' => '邀请码必填',
            'no.required' => '请选择队伍编号',
            'name.required' => '请输入队伍名称',
        ];
    }
}
